
import React , { Component } from 'react'

import './loading.scss';

class Loading extends  Component {
    constructor(){
        super();
    }

    static defaultProps = {
        show:false
    }

    render() {
        const { show } = this.props;
        if(!show) return null;
        return (
            <div className="mask">
                <div className="loading"></div>
            </div>
        )
    }
}

export default Loading;